From e6075f068935c8659e5a58585190d6d3fe67cc9b Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Fri, 23 Jul 2010 18:12:42 +0100 Subject: [PATCH] xl: do not try and auto re-connect console on reboot It is not possible to run the console client if we are rebooting a guest via the backgrounded xl process so we may as well turn off console autoconnect after the first boot. Signed-off-by: Ian Campbell Committed-by: Ian Jackson --- tools/libxl/xl_cmdimpl.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index bfa8dbaac4..c43ba9d879 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -1182,6 +1182,12 @@ start: goto error_out; } + /* + * Do not attempt to reconnect if we come round again due to a + * guest reboot -- the stdin/out will be disconnected by then. + */ + dom_info->console_autoconnect = 0; + ret = libxl_run_bootloader(&ctx, &b_info, num_disks > 0 ? &disks[0] : NULL, domid); if (ret) { fprintf(stderr, "failed to run bootloader: %d\n", ret); -- 2.30.2